home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr27 / lqchr121.zip / LQCHAR.DOC < prev   
Text File  |  1993-05-22  |  19KB  |  352 lines

  1.  
  2.                                   LQCHAR.DOC
  3.                                   ----------
  4.                          Instructions for LQCHAR.COM
  5.                             Version 1.21 (5/31/89)
  6.  
  7.                             (c)1988-89  Eric Meyer
  8.  
  9.  
  10.            Requires:   IBM PC compatible computer
  11.                        Epson LQ compatible dot matrix printer
  12.  
  13.  
  14.      LQCHAR is a small, efficient utility for designing downloaded character 
  15. fonts for Epson LQ-compatible 24-pin dot matrix printers.  It will run on any 
  16. MSDOS system (2.x or above) with an IBM compatible video adapter (MDA, CGA, 
  17. EGA, VGA).  LQCHAR lets you design each character individually on screen, and 
  18. builds up a disk file containing all the character definitions.  This file can 
  19. then be sent to your printer anytime you wish to use the font.
  20.  
  21. ******************************************************************************
  22. *                                                                            *
  23. *          LQCHAR and its documentation are (c)1988-89 Eric Meyer,           *
  24. *     all rights reserved.  They may be freely distributed, but not          *
  25. *     modified or sold for profit without my written consent.                *
  26. *     (Voluntary contributions are welcome.)  The user takes full            *
  27. *     responsibility for any damages resulting from the use of this          *
  28. *     program.                                                               *
  29. *                                                                            *
  30. *                Eric Meyer                                                  *
  31. *           401 12th Ave SE, #139             CompuServe [74415,1305]        *
  32. *           Norman, OK  73071  USA                                           *
  33. *                                                                            *
  34. ******************************************************************************
  35.  
  36.  
  37.                                  INTRODUCTION
  38.  
  39.      The ability of many dot matrix printers to accept downloaded fonts makes 
  40. them far more versatile than formed-character (daisy wheel) printers.  You can 
  41. change fonts in the middle of printing without touching your printer, and you 
  42. can design any characters you like.  (Combined with the font definition 
  43. ability of the EGA/VGA adapter, this allows word processing in a wide variety 
  44. of typefaces, using ordinary off-the-shelf software.  I recommend an excellent 
  45. freeware screen font editor called CHET.ARC, from Mylex Corp.)
  46.  
  47.      If you design some really nice fonts with LQCHAR (artsy, foreign, 
  48. whatever), please consider sending me a copy of the LQC files.
  49.  
  50. ABOUT YOUR PRINTER...
  51.  
  52.      LQCHAR should work with any Epson LQ compatible printer; I use it with a 
  53. 24-pin Alps ALQ-200.  But no manual I've ever seen describes the design and 
  54. use of downloaded fonts in a comprehensible fashion, and I suspect that some 
  55. details may vary from one printer to another.  Anything I say below applies to 
  56. the Alps, and "probably" to your LQ printer (Epson or whatever) as well.
  57.      First let's clear up some terminology:
  58.         QUALITY - What you select with the ESC-x command (Draft, LQ, etc).
  59.            FONT - A set of characters designed for a given print quality.
  60.       FONT TYPE - Whether the font includes undefined characters (see below).
  61.           PITCH - Spacing of a given font (Pica, Elite, etc).
  62.    PROPORTIONAL - This is a variety of PITCH, not of FONT!
  63.  
  64.      LQCHAR designs fonts in either Draft or Letter Quality (LQ) mode.  Some 
  65. printers (such as the Alps) have a third print mode, "High density", that 
  66. falls in between; LQCHAR does not support this mode.  Some printers have a 
  67. third "Proportional" mode with an even larger dot pattern; LQCHAR does not 
  68. support this either.  However, an LQ font designed with LQCHAR can be declared 
  69. proportionally spaced!  (Don't get confused between the two.)
  70.  
  71.  
  72.  
  73. --------------------------  CREATING LQC FILES  ------------------------------
  74.  
  75.  
  76. TYPE:                      A>lqchar FONTNAME
  77.  
  78. FONTNAME: a 1 to 8 character name for the font.  Do not specify the ".TYP" of 
  79.     the file; LQCHAR will automatically make it ".LQC".
  80.          * A disk or directory may precede the fontname.
  81.          * An option may follow the fontname:
  82.                  NO option - EDIT the font file
  83.                         /P - send it to the PRINTER
  84.                         /U - send to the printer and start USING it
  85.  
  86.      You can get this help message onscreen by typing simply "LQCHAR".
  87.  
  88.  
  89.      If you are starting a new font from scratch, you will have to declare it 
  90. to be either Draft or Letter quality (LQ); and you will start out with every 
  91. character blank.  I have included two files called DRAFT.LQC and LETTER.LQC, 
  92. containing a full plain ASCII font for each print quality.  These are often a 
  93. good point of departure for designing modified fonts.  You can use them to get 
  94. a feel for the program, simply by typing:
  95.  
  96.                    A>lqchar draft    OR     A>lqchar letter
  97.  
  98.      Once you are in LQCHAR, you will see a "box" on the left side of the 
  99. screen, in which each character will appear, dot by dot.  The character matrix 
  100. is always 24 dot rows high; its width varies according to the print quality: 9 
  101. dot columns for Draft, 29 for Letter.  (Note: in Draft mode LQCHAR spreads out 
  102. each dot by a factor of 3 so as not unduly to distort the aspect ratio.)  
  103. Background shading indicates the vertical boundaries of a normal capital 
  104. letter.  The rows above are available for accents, etc; those below, for 
  105. lowercase descenders, etc.
  106.  
  107.      To the right you will see a header with general information about the 
  108. font, and the cursor on a prompt that says "Character".  Below will appear a 
  109. list of characters, with those that are already defined highlighted, for 
  110. reference.  At this point you can do a variety of things.
  111.  
  112. MODIFYING THE ENTIRE FONT
  113.  
  114.      First, several commands can be used to modify the whole font in some way:
  115.  
  116.              <F1> -  Change PRINT QUALITY between Draft and Letter
  117.              <F2> -  Change FONT TYPE between full and partial
  118.              <F3> -  Change CHARACTER PITCH: pica, elite, or proportional
  119.             <ESC> -  EXIT to Save Menu
  120.  
  121. When you use the <F1-F3> commands, you will see the information in the header 
  122. change appropriately.  Nothing is changed on disk until you Save the font.
  123.  
  124.      PRINT QUALITY:  It is possible (with the <F1> key) to expand a Draft font 
  125. into a sort of skeleton LQ font, or to compress an LQ font into a Draft font.  
  126. In the first case, each character is expanded to fit the larger LQ pattern, 
  127. leaving blank columns in between; you can enhance and fill in the gaps however 
  128. you like.  In the second case, two rows out of every three are deleted; much 
  129. detail will be lost, so retouching will again be necessary.
  130.      Since changing print quality is a drastic modification which, if invoked 
  131. accidentally, could lose valuable data, LQCHAR prompts for confirmation (Y/N) 
  132. first.
  133.  
  134.      FONT TYPE:  The font can be stored as Full or Partial (selected with the 
  135. <F2> key).  The only difference concerns characters that you have NOT defined: 
  136. in a Full font, they simply won't print.  In a Partial font, the printer's 
  137. resident font will "show through" any gaps; so a Partial font is an easy way 
  138. to modify just a few characters.
  139.  
  140.      PITCH:  The font can be stored as Pica, Elite, or Proportional (selected 
  141. with the <F3> key).  This choice affects only the spacing between characters, 
  142. not the size of the characters themselves:  Pica prints 10 characters per inch 
  143. (cpi), Elite prints a more compact 12 cpi, and Proportional is also about 12 
  144. cpi but will vary according to the actual width of the characters.  (Some 
  145. printers can vary the pitch of a downloaded font, and will not require the use 
  146. of this command.  See MORE ABOUT DOWNLOADED FONTS below.)
  147.  
  148. THE DOS MENU
  149.  
  150.      When you are finished modifying the font, pressing <ESC> takes you to the 
  151. DOS MENU, which presents several choices:
  152.          <P>= PRINT THE FONT.  The entire range of characters will be printed, 
  153.     with the standard font above (for comparison) and your new font below.  
  154.     (Your printer must be online.)
  155.          <C>= CHANGE THE NAME of the font before saving it to a disk file.
  156.          <S>= SAVE the font to disk, then continue editing.
  157.          <L>= LOAD A NEW FONT to work on.
  158.          <E>= EXIT to DOS, SAVING the font to disk first.
  159.          <Q>= QUIT to DOS, without saving the font to disk.
  160. Pressing <ESC> at the DOS MENU will return you to editing the font.
  161.  
  162.  
  163. ---------------------------  DESIGNING CHARACTERS  ---------------------------
  164.  
  165.      To examine and modify individual characters, you can press:
  166.  
  167.           ARROW KEYS -  Display previous/next character
  168.        Any character -  Display that character
  169.             <RETURN> -  Edit the character shown
  170.  
  171. Select the standard character whose ASCII code corresponds to that of the new 
  172. character you wish to create.  You may choose any character from hex value 21 
  173. to 7E (33 to 126 decimal, "!" to "~").  If you pick a previously defined 
  174. character, you will be modifying it.  For example, if you've loaded DRAFT.LQC, 
  175. and type "A", you should see that character in the box; if you hit <RETURN>, 
  176. you will be editing that character.
  177.  
  178.      Note that your cursor is now inside the character matrix.  You can move 
  179. it around with your arrow keys.  The spacebar or keypad [5] key will toggle 
  180. the pin you are pointing to ON and OFF.  Thus you can build up the pattern of 
  181. dots that will form your character.
  182.  
  183.      There are many other special commands available in this mode, to make 
  184. modifying characters easier; a reminder of them is visible to the right for 
  185. reference during editing.  These are:
  186.  
  187.         <R,L,U,D>  move the whole pattern RIGHT, LEFT, UP, or DOWN.
  188.               <C>  COPY the pattern from another defined character.
  189.               <O>  copy pattern from character in OTHER font file.
  190.               <B>  BLANK the whole pattern out to start over.
  191.               <P>  PREVIEW a character in hi-res graphics. (EGA only!)
  192.           <F1,F2>  move current COLUMN up, down.
  193.           <F3,F4>  move current ROW left, right.
  194.           <F5,F6>  insert, delete a COLUMN.
  195.           <F7,F8>  insert, delete a ROW.
  196.           <F9,F0>  ROTATE left, right.
  197.  
  198.      NOTES:  The OTHER command can be used to copy characters from another LQC 
  199. font file (you will be asked for the font name).  This works with any other 
  200. font, regardless of print quality, pitch, or font type.  (On limitations of 
  201. Draft/LQ conversion, see above.)
  202.      The PREVIEW command works ONLY on an EGA adapter.  It shows you a more 
  203. realistic, miniature picture of the present character, using higher resolution 
  204. graphics.  Press <P> again or <ESC> to remove this and continue editing.
  205.  
  206.      Of the remaining commands, only "rotate" is a bit tricky: this changes 
  207. the overall slant of a character.  Be sure the character isn't too wide, and 
  208. is roughly centered in the box, or parts of it will get truncated.  Note that 
  209. the rotation works in increments of 2 rows; thus moving the character up or 
  210. down one row first can give a slightly different effect.  Also, if you're 
  211. going to rotate more than once, you should move the character up or down once 
  212. each time in between to get the smoothest effect.  (Rotation works best on LQ 
  213. characters; its effects are a bit drastic for Draft mode.)
  214.  
  215.      When done, you can press either:
  216.  
  217.               <RETURN> -  SAVE the character as modified
  218.           or     <ESC> -  QUIT without saving changes
  219.  
  220. Upon saving, automatic centering causes the pattern to move to the middle of 
  221. the box.  Note that you will not be able to save a definition that violates 
  222. the following rule:
  223.  
  224.           --->  No two adjacent pins in any ROW may be ON!  <---
  225.  
  226. This is a physical limitation of the printhead: the pins can't fire fast 
  227. enough to print twice in adjacent columns.  You could send such a character 
  228. definition to the printer, but the second dot wouldn't print as intended, so 
  229. LQCHAR warns you beforehand to avoid mistakes.
  230.  
  231.  
  232.  
  233. ----------------------  PRINTING WITH DOWNLOADED FONTS  ---------------------- 
  234.  
  235.  
  236.      The fonts designed with LQCHAR should have a filetype of ".LQC", for 
  237. ready identification.  Typically they range in size from 1k to 5k, depending 
  238. on how many characters are defined (also, Partial or LQ fonts are larger than 
  239. Full or Draft fonts).  They must be loaded into your printer's font memory in 
  240. order to be used.  This is done with the "/P" option:
  241.  
  242.                           A>lqchar fontname /p
  243.  
  244. This command can be given, for example, before you enter your word processor, 
  245. or (hopefully) from some kind of DOS gateway within it.  (Be sure your printer 
  246. is online.)  The font is now ready for use.  In order for this to work, your 
  247. software MUST be installed to give the printer commands to switch to the 
  248. downloaded font when required.  For example, in WordStar 4, you might have 
  249. your print controls set up so that ^PA enables the downloaded (alternate) 
  250. font, and ^PN goes back to the normal font. Thus you can alternate between two 
  251. completely different fonts.
  252.  
  253.      If you don't have LQCHAR handy, you can also use the ordinary DOS COPY 
  254. command to do this.  You will have to specify the filetype though; and you 
  255. should use the /B option to make sure the LQC file is treated as binary, not 
  256. character, data:
  257.  
  258.                           A>copy fontname.LQC prn /b
  259.  
  260.      Alternatively, you may want to be using the downloaded font alone, rather 
  261. than switching back and forth between it and the normal font.  (This is how 
  262. you will typically use a Partial font.)  In this case, you want the font to 
  263. take effect immediately upon loading.  Use the "/U" option instead:
  264.  
  265.                           A>lqchar fontname /u
  266.  
  267. After loading the font, LQCHAR will enable it, so that all subsequent printing 
  268. will be using the downloaded font.  Your word processor doesn't need to know a 
  269. thing about it.  In order for this to work, your software MUST NOT use any 
  270. printer commands to change the font after you've run LQCHAR.  (Check your 
  271. "printer initialization sequence" for commands that reset the printer, select 
  272. font or print quality, etc.)
  273.  
  274. MORE ABOUT DOWNLOADED FONTS:
  275.  
  276.      In any event, you will have to be careful that your software does not 
  277. send commands to the printer that will cancel the font loaded with LQCHAR.  
  278. This may include certain "global reset" commands that programs often use to 
  279. initialize the printer.  If you can't get a downloaded font to work, try 
  280. reloading it with the "/U" option, then printing something with a simple DOS 
  281. command like "COPY filename PRN".  If this does work, your problem is with the 
  282. printer initialization in your software; see your manual for how to modify it.
  283.  
  284.      Your printer can keep only one downloaded font in memory at once; if you 
  285. load a second font it will replace the first.  After using LQCHAR, you can 
  286. change between Draft and Letter quality, but of course the printer's resident 
  287. font will be used in the other mode.
  288.  
  289.      Downloaded fonts do function a bit differently than the printer's 
  290. resident font.  They should respond nicely to all the usual enhancements: 
  291. expanded, compressed, emphasized, italics etc.  (This may depend on your 
  292. printer; these all work on my Alps.)
  293.      Your printer may or may not allow printer commands to vary the pitch of a 
  294. downloaded font with ESC sequences or panel switches.  (My Alps does not; I am 
  295. told that some Epsons do.)  If it does, you can leave LQCHAR set to "pica 
  296. pitch" and ignore the "pitch" command <F3>.  If not, your choice with the <F3> 
  297. key determines the pitch.  (You can always create another copy of an LQC file 
  298. in a different pitch.)
  299.      But there is one FIRM limitation:  True super/subscripts will NOT work, 
  300. as these miniature characters have to be defined separately, on an 18-pin high 
  301. matrix, and LQCHAR doesn't do this.  If you need these, you may be able to 
  302. install your software to do subscripting with platen rolls instead.
  303.  
  304.  
  305. --------------------------  TECHNICAL INFORMATION  --------------------------- 
  306.  
  307. LQC FILE FORMAT:
  308.  
  309.      The output file for a full font consists of an ESC sequence to set the 
  310. print quality (draft/LQ), then a long ESC sequence defining every ASCII 
  311. character from hex 20 to 7E.  (LQCHAR defines 20H as space, automatically.)  
  312. For a partial font, the file instead contains the ESC sequence to copy the 
  313. resident font, then a separate ESC sequence for each defined character 
  314. individually.
  315.      This means that if you don't have LQCHAR handy, you can simply load LQC 
  316. fonts with the DOS COPY command: they contain nothing but standard Epson ESC 
  317. sequences.  However -- there too many details about the way the character 
  318. definitions must be formatted to explain here.  I do NOT recommend that you 
  319. try to convert font data from other sources into LQC files for use with 
  320. LQCHAR.  There are just too many details, and LQCHAR might crash if its data 
  321. isn't in the expected format.
  322.      LQCHAR can, however, read LQC files created by the earlier CP/M version 
  323. of the program (LQCHAR 1.1, 8/87).
  324.  
  325. SCREEN COLORS:
  326.  
  327.      The default screen colors in LQCHAR are chosen for visibility on the 
  328. widest variety of display adapters.  However, if you prefer to change the 
  329. colors using DEBUG or a similar utility to modify LQCHAR.COM, you may do so.  
  330. There are 5 distinct colors, beginning at address 0102h:
  331.      ADDR   DEFAULT                PURPOSE
  332.      0102   07  (white)            Normal video
  333.      0103   08  (grey)             Dim video (undefined/unavailable items)
  334.      0104   0F  (bright)           Bright video    /These are all used \
  335.      0105   70  (black on white)   Inverse video  < for highlighted text>
  336.      0106   7F  (bright on white)  Hilight video   \and box shading    /
  337.  
  338.  
  339. VERSION HISTORY:
  340.  
  341.      LQCHAR 1.0 (6/88) was developed from my earlier Z80 CP/M program of the 
  342. same name (version 1.1, 8/87), with a number of added features.
  343.      v 1.1 (1/89) - adds hi-res preview for EGA systems; small improvements.
  344.      v 1.2 (4/89) - more DOS functions; LQ to Draft conversion; copy character 
  345.                    from another font; print font; small improvements.
  346.      v 1.21 (5/89) - fixed bug in <O>ther font function; small improvements.
  347.                    Proportional spacing of punctuation and other narrow char-
  348.                    acters improved.  (Note: to adjust existing LQC files you
  349.                    must press <F3> 3 times to repack the font, then save.)
  350.  
  351. ------------------------------------[end]-------------------------------------
  352.